package creational.builder;

/**
 * 这里是一个构造者的具体实现
 */
public class AmdBuilder implements IComputerBuilder {
    private Computer computer = new Computer();

    @Override
    public void setCpu() {
        computer.setCpuName("Amd Cpu");
    }

    @Override
    public void setMainboard() {
        computer.setMainboardName("Amd Mainboard");
    }

    @Override
    public Computer createComputer() {
        return computer;
    }
}
